home *** CD-ROM | disk | FTP | other *** search
/ SGI O2 Out of Box Experience 2.2 / SGI O2 Out of Box Experience 2.2.iso / cgi-bin / nph-startCourtyardMovie.cgi < prev    next >
Text File  |  1998-05-26  |  1KB  |  52 lines

  1. #!/bin/sh
  2.  
  3. DISPLAY=:0.0
  4. export DISPLAY
  5.  
  6. # Must do this for mediaplayer to run.....
  7. HOME=/var/tmp
  8. export HOME
  9.  
  10. # First thing, check to see if we've already started mediaplayer
  11. #   If so, exit.  If not, continue on.......
  12.  
  13. found=`/sbin/ps -ef | grep "mediaplayer" | grep -v grep`
  14. if [ -n "$found"  ]; then
  15.         /usr/bin/X11/xconfirm -c -B "OK" -icon progress \
  16.         -t "The movie has already been started..." > /dev/null
  17.         exit
  18. fi
  19.  
  20.  
  21. server_protocol=$SERVER_PROTOCOL;
  22. server_software=$SERVER_SOFTWARE;
  23.  
  24. /sbin/echo "$server_protocol 200 OK"
  25. /sbin/echo "Server: $server_software"
  26. /sbin/echo "Content-Type: text/html\n\n";
  27.  
  28.  
  29. # Print header
  30. /sbin/echo "<html>\n";
  31. /sbin/echo "<body bgcolor=#000000 text=#996688>\n";
  32. /sbin/echo "<PRE>\n";
  33. /sbin/echo "</PRE>\n";
  34. /sbin/echo "<h2>    Starting opening video...</h2>\n";
  35. /sbin/echo "</body>\n";
  36. /sbin/echo "</html>\n";
  37.  
  38. # run app in foreground
  39. `/usr/people/OutOfBox/bin/dmplayOOBE 0 430 -A 25 -p graphics -z 2 -E auto /CDROM/entryspace/movies/opening.jpg 2> /dev/null`;
  40.  
  41.  
  42. # turn the area black again.
  43. /sbin/echo "<html>\n";
  44. /sbin/echo "<body onLoad='history.back()'>\n";
  45. /sbin/echo "</body>\n";
  46. /sbin/echo "</html>\n";
  47.  
  48.  
  49.  
  50.  
  51.  
  52.